home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DOSTIPS2.ZIP / DOSFRMAT.TXT < prev    next >
Text File  |  1985-11-24  |  5KB  |  155 lines

  1.                           Format Finish
  2.              (PC World September 1985 Star-Dot-Star)
  3.  
  4.      FORMAT.COM can be made to beep each time it finishes formatting a
  5. disk.  To create FMATBEEP.COM, follow the DEBUG routine below.  This
  6. replaces the prompt "Format another (Y/N)?" with the word "Another?"
  7. and a beep.
  8.  
  9. A>copy a:format.com a:fmatbeep.com
  10. A>debug fmatbeep.com
  11. s 100 2000 "Format another"
  12. xxxx:0F71
  13. xxxx:0F71 46 6F 72 6D 61 74 20 61 6E 6F 74 68 65 72 20
  14. xxxx:0F80 28 59 2F 4E 29 3F 24 0D 0A 24 49 6E 76 61 6C 69
  15. e 0f71 "Another (Y/N)?" 07 24
  16. -w
  17. Writing 1B00 bytes
  18. -q
  19.  
  20. -----------------------------------------------------------------
  21.                             Switch On
  22.                (PC World Star-Dot-Star March 1985)
  23.  
  24.      When you format a disk with DOS 2.0 or later, you can use the /V
  25. optional parameter to have FORMAT.COM prompt you for a volume name to
  26. assign to the disk.  If you use one of the patches shown below (for
  27. your particular version of DOS), FORMAT.COM will always ask for a
  28. volume name.
  29.  
  30. DOS 2.0:                        DOS 2.1:
  31. A>DEBUG FORMAT.COM              A>DEBUG FORMAT.COM
  32. -E7C7 75                        -E647 EB 08 90 90 90 90
  33. -W                              -W
  34. Writing xxxx bytes              Writing xxxx bytes
  35. -Q                              -Q
  36.  
  37. DOS 3.0:
  38. A>DEBUG FORMAT.COM
  39. -EB4D EB 08 90 90 90 90
  40. -W
  41. Writing xxxx bytes
  42. -Q
  43.  
  44. -----------------------------------------------------------------
  45.                            Format Fix
  46.              (PC World Star-Dot-Star December 1984)
  47.  
  48.      The FORMAT.COM program included on the DOS disk makes it all too
  49. easy to format the hard disk inadvertently on an IBM PC/XT.  The
  50. patches shown below are changes to DOS 2.0 and DOS 2.1 that will cause
  51. a return to the system prompt if any attempt is made to format a disk
  52. in a drive other than drive A: or drive B:.  When making these patches,
  53. use a copy of FORMAT.COM, and insure that the display on your screen
  54. matches the listing shown here except for the "xxxx", which will be
  55. replaced by different numbers depending on the configuration of the
  56. machine.
  57.  
  58. DOS 2.0:
  59. A>debug format.com
  60. -u585
  61. xxxx:0585 BA340C       MOV    DX,0C34
  62. xxxx:0588 803E3D1400   CMP    BYTE PTR [143D],00
  63. xxxx:058D 7403         JZ     0592
  64. xxxx:058F BA740C       MOV    CX,0C74
  65. xxxx:0592 E888FF       CALL   051D
  66. xxxx:0595 E8A0FF       CALL   0538
  67. xxxx:0598 E893FF       CALL   0531
  68. xxxx:059B E893FF       CALL   0531
  69. xxxx:059E C3           RET
  70. xxxx:059F 8A164509     MOV    DL,[0945]
  71. xxxx:05A3 FEC2         INC    DL
  72. -a58f
  73. xxxx:058F int 20
  74. xxxx:0591 nop
  75. xxxx:0592
  76. -w
  77. Writing 1780 bytes
  78. -q
  79.  
  80. DOS 2.1:
  81. A>debug format.com
  82. -u548
  83. xxxx:0548 BAF60E       MOV    DX,0EF6
  84. xxxx:054B 803EE51700   CMP    BYTE PTR [17E5],00
  85. xxxx:0550 7403         JZ     0555
  86. xxxx:0552 BA360F       MOV    DX,0F36
  87. xxxx:0555 E888FF       CALL   04E0
  88. xxxx:0558 E80700       CALL   0562
  89. xxxx:055B E896FF       CALL   04F4
  90. xxxx:055E E893FF       CALL   04F4
  91. xxxx:0561 C3           RET
  92. xxxx:0562 B8080C       MOV    AX,0C08
  93. xxxx:0565 CD21         INT    21
  94. xxxx:0567 B8000C       MOV    AX,0C00
  95. -a552
  96. xxxx:0552 int 20
  97. xxxx:0554 nop
  98. xxxx:0555
  99. -w
  100. Writing 1800 bytes
  101. -q
  102.  
  103. -----------------------------------------------------------------
  104.                         Drive A: or Else
  105.                (PC World Star-Dot-Star March 1985)
  106.  
  107.      Another patch to FORMAT.COM ...with this patch, FORMAT will always
  108. default to drive A: unless you specify otherwise when you execute the
  109. FORMAT command.  Change the date to 12-12-2012 (which is displayed as
  110. 12-12-12) or some other easily recognizable value before you modify
  111. FORMAT.COM.  That way you can look at the directory to easily determine
  112. that the original version of FORMAT.COM has not accidentally been
  113. copied onto the hard disk.
  114.  
  115. DOS 2.0:                           DOS 2.1:
  116. A>DATE 12/12/2012                  A>DATE 12/12/2012
  117. A>DEBUG FORMAT.COM                 A>DEBUG FORMAT.COM
  118. -E169 B0 00 90 90                  -E174 B0 00 90 90
  119. -W                                 -W
  120. Writing xxxx bytes                 Writing xxxx bytes
  121. -Q                                 -Q
  122.  
  123. DOS 3.0:
  124. A>DATE 12/12/2012
  125. A>DEBUG FORMAT.COM
  126. -E648 B0 00 90 90
  127. -W
  128. Writing xxxx bytes
  129. -Q
  130.  
  131. -----------------------------------------------------------------
  132.                         Say What You Mean
  133.                (PC World Star-Dot-Star March 1985)
  134.  
  135.      The following patches to FORMAT.COM require that a drive be
  136. specified before the FORMAT formats.  If you type the command FORMAT
  137. without specifying a drive, the program terminates with the message
  138. "Invalid Drive Specification."
  139.  
  140. DOS 2.0:                            DOS 2.1:
  141. A>DATE 12/12/2012                   A>DATE 12/12/2012
  142. A>DEBUG FORMAT.COM                  A>DEBUG FORMAT.COM
  143. -E169 EB F5 90 90                   -E191 EB D8 90 90 90
  144. -W                                  -W
  145. Writing xxxx bytes                  Writing xxxx bytes
  146. -Q                                  -Q
  147.  
  148. DOS 3.0:
  149. A>DATE 12/12/2012
  150. A>DEBUG FORMAT.COM
  151. -E648 EB D5 90 90
  152. -W
  153. Writing xxxx bytes
  154. -Q
  155.